package com.house.mapper;

import com.house.entity.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectMapper {
    List<Collect> findAllByUserId(@Param("userId")int userId);

    int deleteByHouseIdAndUserId(@Param("houseId")int houseId,@Param("userId")int userId);

    int insertOne(@Param("userId")int userId,@Param("houseId")int houseId);
}
